/*
 * FileName: tplSpecialization.cc
 * Author: 李波(Edwin Lee)
 * Date: 2024-07-14 08:26:15
 * Version: 1.0
 * Description: 模板完全特例化和非完全（部分）特例化
 */
#include <iostream>
#include <cstring>
using namespace std;

//函数模板
template<typename T>
bool bigger(T a, T b)
{
	cout << "call template NON specialied" <<endl;
	return a > b;
}

//完全特例化
template<>
bool bigger<const char*>(const char* a, const char* b)
{
	cout << "call bigger<const char*>" <<endl;
	return strcmp(a,b) > 0;
}

int main()
{
	bigger(10,20);
	bigger("aaa","bbb");
	return 0;
}
